package dubbo.demo.provider.service;

import com.alibaba.dubbo.config.annotation.Service;
import dubbo.demo.api.IDemoService;
import org.springframework.stereotype.Component;

import java.io.Serializable;

@Service(version = "1.0.0",interfaceClass = IDemoService.class)
@Component
public class DemoService implements IDemoService {
    @Override
    public Serializable sayHello() {
        return "Hello World";
    }
}